﻿@using Lari.Configuration;
@if (TempData[ApplicationConfig.InfoKey] != null && ((List<String>)TempData[ApplicationConfig.InfoKey]).Count > 0)
{
    <div id="infomessageDiv">
        @{var data = TempData[ApplicationConfig.InfoKey] as List<String>;}  

        @if (data != null)
        {
            foreach (string msg in data)
            { 
                <div>
                    @*<img src="@Url.Content("~/Image/Info.ico")" width="15px" height="15px" alt="Information" style="vertical-align:middle"/> *@
                    @msg
                </div>
                         
            }
        }
    </div>
}
@if (TempData[ApplicationConfig.ErrorKey] != null && ((List<String>)TempData[ApplicationConfig.ErrorKey]).Count > 0)
{
    <div id="errormessageDiv">
        @{var data = TempData[ApplicationConfig.ErrorKey] as List<String>;}

        @if (data != null)
        {
            foreach (string msg in data)
            { 
                <div >
                    @*<img src="@Url.Content("~/Image/Info.ico")" width="15px" height="15px" alt="Information" style="vertical-align:middle"/> *@
                    @msg
                </div>
                         
            }
        }
    </div>
}
